<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>用户信息</title>
<script src="http://cdn.static.runoob.com/libs/jquery/1.10.2/jquery.min.js"></script>
</head>
<body>
<img id="peopleimg" src="peopleImage.png" alt="头像">
<table>
<tr><td><label>姓名：</label></td><td><label>${session.user.name }</label></td></tr>
<tr><td><c:if test="${session.user.userType=='t'}"><label>工号：</label></c:if><c:if test="${session.user.userType=='s'}"><label>学号：</label></c:if></td><td><label>${session.user.workNumber }</label></td></tr>
<tr><td><label>邮箱：</label></td><td><label>${session.user.email }</label></td></tr>
<tr><td colspan="2"><button id="loginout" >退出登录</button><button id="userspace" >个人空间</button></td></tr>
</table>
<script type="text/javascript">
$(document).ready(function(){
	$("#loginout").click(function(){
		window.location.href="../user/loginout.action";
	});
	$("#userspace").click(function(){
		window.open("../pages/toUserSapcesPage.action");
	});
});
</script>
</body>
</html>